<meta charset="UTF-8">
<style>
    #d1{
        font-size:100px;
        color:red;
    }
</style>
<div id="d1"></div>
<script>
    //定时函数

    setInterval(f,1000);

    var i=0;
    var n=["10","9","8","7","6","5","4","3","2","1"];
    function f(){
       
	if(i<=9){
	d1.innerHTML = n[i];
	i++;
	}
    }
    f();
   
</script>
